# -*- coding: utf-8 -*-

import time
import pymysql
from threading import Lock, Event
import paramiko
time_str = time.strftime("%H:%M")
conn = pymysql.connect(host="10.33.64.99", user="root", passwd="vdin1234", db="tsgz", charset="utf8")
cursor = conn.cursor()
sql = "SELECT * FROM app_totalnetflow WHERE add_time LIKE '%{}%'".format(time_str)
print cursor.execute(sql)

print cursor.fetchall()